home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
game
/
patch
/
infesthd.lha
/
InfestationHD
/
Install-Game
< prev
next >
Wrap
Text File
|
1998-09-25
|
1KB
|
75 lines
(set #CI_unit 0)
(set #CI_drive ("DF%ld:" #CI_unit))
(set #rip "abaddon")
(set #dismount "dismount")
;----------------------------
;try to figure out a place where the user usually installs his games
(if (exists "Games:" (noreq) )
(set @default-dest "Games:")
(if (exists "SYS:Games" (noreq) )
(set @default-dest "SYS:Games")
(if (exists "Work:Games" (noreq) )
(set @default-dest "Work:Games")
(if (exists "JEUX:" (noreq) )
(set @default-dest "JEUX:")
(set @default-dest "SYS:")
)
)
)
)
(set @default-dest
(askdir
(prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
(help @askdir-help)
(default @default-dest)
(disk)
)
)
(set #dest (tackon @default-dest @app-name))
(makedir #dest
(help @makedir-help)
(infos)
)
;----------------------------
(makedir
(tackon #dest "data")
(help @makedir-help)
)
(copyfiles
(help @copyfiles-help)
(source "InfestationHD")
(dest #dest)
(infos)
)
(copyfiles
(help @copyfiles-help)
(source "infesthd.readme")
(dest #dest)
(infos)
)
(makeassign #rip (tackon #dest "data"))
(message ("\nReady to rip %s data?\n\nThe screen will go blank" @app-name))
(if
(= 0 (run ("ripinfest QUIET")))
("")
(abort "\"jst\" must be in your PATH !")
)
(makeassign #rip)
(exit)